package com.newviews.tcmip.pojo.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 处方-中草药关系表
 * </p>
 *
 * @author lxc
 * @since 2024-03-01
 */
@Getter
@Setter
@TableName("etcm_px_herb")
@ApiModel(value = "EtcmPxHerbPo", description = "处方-中草药关系表")
public class EtcmPxHerbPo implements Serializable{

private static final long serialVersionUID=1L;

    /**
     *
     */
            @TableId("id")
                private String id;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @TableField("create_time")
        private LocalDateTime createTime;

    /**
     * 创建人id
     */
    @ApiModelProperty("创建人id")
    @TableField("create_user_id")
        private String createUserId;

    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    @TableField("op_time")
        private LocalDateTime opTime;

    /**
     * 修改人id
     */
    @ApiModelProperty("修改人id")
    @TableField("op_user_id")
        private String opUserId;

    /**
     * 状态【0-无效；1-有效；2-已删除】
     */
    @ApiModelProperty("状态【0-无效；1-有效；2-已删除】")
    @TableField("status")
        private Integer status;

    /**
     * 处方Id，外键
     */
    @ApiModelProperty("处方Id，外键")
    @TableField("px_id")
        private String pxId;

    /**
     * 中草药Id，外键
     */
    @ApiModelProperty("中草药Id，外键")
    @TableField("herb_id")
        private String herbId;

    /**
     * 计量
     */
    @ApiModelProperty("计量")
    @TableField(exist = false)
        private String quantity;


    @TableField(exist = false)
    private String pxHerbDistance;


    @TableField(exist = false)
    private String pValue;


    @TableField(exist = false)
    private String pxEnName;

    @TableField(exist = false)
    private String pxZhName;

    @TableField(exist = false)
    private String herbEnName;

    @TableField(exist = false)
    private String herbZhName;

    /**
     *
     */
    public static final String ID ="id";

    /**
     * 创建时间
     */
    public static final String CREATE_TIME ="create_time";

    /**
     * 创建人id
     */
    public static final String CREATE_USER_ID ="create_user_id";

    /**
     * 修改时间
     */
    public static final String OP_TIME ="op_time";

    /**
     * 修改人id
     */
    public static final String OP_USER_ID ="op_user_id";

    /**
     * 状态【0-无效；1-有效；2-已删除】
     */
    public static final String STATUS ="status";

    /**
     * 处方Id，外键
     */
    public static final String PX_ID ="px_id";

    /**
     * 中草药Id，外键
     */
    public static final String HERB_ID ="herb_id";

    /**
     * 计量
     */
    public static final String QUANTITY ="quantity";

    @Override
    public String toString() {
        return "EtcmPxHerbPo{" +
                "id='" + id + '\'' +
                ", createTime=" + createTime +
                ", createUserId='" + createUserId + '\'' +
                ", opTime=" + opTime +
                ", opUserId='" + opUserId + '\'' +
                ", status=" + status +
                ", pxId='" + pxId + '\'' +
                ", herbId='" + herbId + '\'' +
                ", quantity='" + quantity + '\'' +
                ", pxHerbDistance='" + pxHerbDistance + '\'' +
                ", pValue='" + pValue + '\'' +
                ", pxEnName='" + pxEnName + '\'' +
                ", pxZhName='" + pxZhName + '\'' +
                ", herbEnName='" + herbEnName + '\'' +
                ", herbZhName='" + herbZhName + '\'' +
                '}';
    }
}
